home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / tsr / viz422.zip / VIZ.DOC < prev    next >
Text File  |  1992-01-01  |  65KB  |  1,340 lines

  1.  
  2.                       VIz
  3.  
  4.            Copyright (c) 1989, 1990, 1991 FM de Monasterio
  5.               Licensed Material - All Rights Reserved
  6.  
  7.                   Version 4.22
  8.  
  9.    SUMMARY
  10.  
  11.    VIz is a small resident program that accelerates BIOS (and DOS) video input
  12.    and output in text mode; it can be used with IBM-compatible MDA, EGA or VGA
  13.    adapter cards and Hercules HGC and HGC+ cards.  In its present version, VIz
  14.    produces video interference ("snow") in old CGA cards; for such systems you
  15.    can use VIz-CGA, a snow-free, 8088-CPU oriented version.
  16.  
  17.    In addition, VIz includes an independent, resident component for displaying
  18.    a block cursor, either continuously or alternating with a line cursor at an
  19.    adjustable rate of alternation.  The latter display is well suited for easy
  20.    localization of the cursor in some laptop screens.
  21.  
  22.    Finally, VIz also contains an independent, resident ANSI-filter driver that
  23.    mediates a subset of the ANSI escape sequences to control the console. This
  24.    filter can be used, instead of ANSI.SYS, to implement ANSI escape sequences
  25.    to control video display, with the advantage that can be turned off and on,
  26.    and removed from memory without rebooting.
  27.  
  28.    All 3 resident modules occupy a total of less than about 1800 bytes of RAM.
  29.    Depending on the system configuration and BIOS version, video accelerations
  30.    by a factor of between 2 and 10 have been obtained.
  31.  
  32.  
  33.    REGISTRATION
  34.  
  35.    This software is user-supported; the present release, although lacking the
  36.    options marked by asterisks, is a fully usable program.  You may test this
  37.    release for (in)compatibilities with your system, but after the testing is
  38.    completed you are requested to order a registered copy of the full release
  39.    of the software from the address at the end of this documentation.
  40.  
  41.    If you would rather use this unregistered copy, consider making a donation
  42.    to the Children's Hospital of Washington DC, for indigent children in need
  43.    of medical care.  Every year in the USA, infant mortality claims the lives
  44.    of tens of thousands of children before their first year of life, and most
  45.    of them come from families below poverty level...  Please send to the same
  46.    address a check payable to the "PATIENT CARE FUND, CHILDREN'S HOSPITAL" on
  47.    the obverse, and marked "For Deposit Only" on the reverse.  Donations will
  48.    be sent to Children's Hospital.  Please identify the program for which you
  49.    are making the donation.
  50.  
  51.    --------------------------------------------------------------------------
  52.        VIZ.REG contains a form needed to register or upgrade the Software
  53.    --------------------------------------------------------------------------
  54.  
  55.    See the final part of this documentation for information on the Licensing,
  56.    Distribution, Warranty, and Limitation of Remedies of this software.
  57.  
  58.                 -----------------
  59.  
  60.    GENERAL INFORMATION
  61.  
  62.    There are 3 basic ways of producing character-oriented, text video displays
  63.    in DOS computers: (1) using direct video memory mapping, which is extremely
  64.    fast but dependent on the video hardware and has a limited portability; (2)
  65.    via BIOS services, provided by the first "hidden" DOS boot file and usually
  66.    augmented by the video adapter, which are not as fast as direct mapping but
  67.    more portable; and (3) via DOS services, provided by the other "hidden" DOS
  68.    boot file and sometimes augmented via installable device drivers, which are
  69.    much slower than the other two approaches, but have greater portability and
  70.    permit additional operations such as redirection.
  71.  
  72.    Many of the DOS and BIOS video services can be accelerated using a resident
  73.    program that intercepts the calls made to such services, and implements the
  74.    video operation with faster instructions.  Because of the nature of DOS and
  75.    of BIOS services, the interception must occur at the input site of the BIOS
  76.    services (interrupt 10h), whereas it can occur at the input site (interrupt
  77.    21h) or output site (interrupt 29h), or both, of the DOS services.
  78.  
  79.    VIz is a utility that accelerates many of the basic text-video services and
  80.    allows changing the video mode, page and font of the display as well as the
  81.    raw or normal mode of DOS video output.  When used in a VGA/EGA system, VIz
  82.    also permits control of the red, green and blue mixture that determines the
  83.    color of each of the 16 registers of the color palette, and the RGB mixture
  84.    can be modified to suit user preferences.  VIz also permits controlling the
  85.    frequency (pitch) of the bell's tone.
  86.  
  87.    VIz requires MS-DOS version 2 or higher (or a compatible operating system).
  88.    Selfloading in upper memory requires MS-DOS version 3 or higher. A cyclical
  89.    redundancy check (CRC) is performed each time VIz is executed.  The program
  90.    cancels execution if the CRC fails, since it indicates code corruption.
  91.  
  92.  
  93.    HARDWARE COMMANDS COMPATIBILITY
  94.  
  95.    VIz updates cursor position through direct hardware commands. In most video
  96.    systems, such commands can be sent out as one 16-bit (Word) value or as two
  97.    successive 8-bit (Byte) values. The word-out method of addressing, which is
  98.    used by other programs (e.g., Microsoft WINDOWS), yields faster positioning
  99.    of the cursor but may not work with some older clone systems.
  100.  
  101.    Registered VIz releases use cursor word-out addressing; to verify that your
  102.    system can handle this method, you can enter the command 'VIZ ?H' to see if
  103.    the cursor appears at the indicated position. If not, the video system only
  104.    allows byte-out addressing, and registered users need to contact the vendor
  105.    for a byte-out release of VIz free of charge.
  106.  
  107.  
  108.    CPU VERSIONS
  109.  
  110.    VIz is entirely written in assembly language.  Each VIz version consists of
  111.    4 processor-type releases (086, 268, 386, and 486), where the code has been
  112.    optimized for the specific type of 80x86 processor.  This is needed because
  113.    the processors currently available differ markedly in instruction execution
  114.    times, and the availability of memory caches affects those times further by
  115.    influencing both speed of instruction fetching and memory access.  The type
  116.    and degree of code optimization vary with the processor model.
  117.  
  118.    In addition to standard (086) assembly language instructions, the 286, 386,
  119.    and 486 releases of VIz also use 286-, 386- or 486-specific instructions in
  120.    real mode only (which is the native mode for 086 processors).  The releases
  121.    differ slightly in resident size.
  122.  
  123.                 -----------------
  124.  
  125.    1.  VIDEO ACCELERATION MODULE
  126.  
  127.    VIz installs itself as a resident program that can be invoked repeatedly for
  128.    modification of its parameters, without producing multiple copies on memory;
  129.    the accelerator module of the resident uses less than 1,000 bytes of RAM. To
  130.    maximize speed of code, but minimize resident size, acceleration only occurs
  131.    for video page 0 in a text mode (1-3, color; 7, monochrome).  In other pages
  132.    or graphic modes, VIz becomes inactive and is automatically reactivated by a
  133.    change to page 0 in text mode.
  134.  
  135.    The acceleration provided by VIz depends on several factors, including video
  136.    BIOS version, adapter manufacturer, x86 processor model and clock speed, use
  137.    of graphics coprocessors, and whether the video BIOS is shadowed or remapped
  138.    to faster RAM.  Generally speaking, a smaller acceleration is to be expected
  139.    in machines performing faster BIOS operations (i.e. tighter ROM code, faster
  140.    CPU, shadowed or remapped ROM) than in slower machines.  The relative weight
  141.    of individual factors, however, may yield unexpected results.
  142.  
  143.    VIz updates relevant parameters in the BIOS data area (segment 40h), such as
  144.    cursor position (page 0 only) and type, video mode, page, and font, that are
  145.    also processed by VIz; while such updating degrades video acceleration time,
  146.    it also decreases the possibility of conflict with foreground utilities that
  147.    use BIOS data but bypass BIOS calls.
  148.  
  149.                 -----------------
  150.  
  151.    2.  BLOCK-AND-LINE CURSOR ALTERNATION MODULE
  152.  
  153.    To help cursor visualization in screens where the cursor is not easily seen,
  154.    as in some laptop displays, VIz provides a small resident module that allows
  155.    for the display of a (full-)block cursor, either continuously or alternating
  156.    with a line cursor. The alternation rate can be adjusted in steps of 54.9 ms
  157.    between about 0.055 s (/V1) and 5.5 s (/V99).  A zero alternation rate (/V0)
  158.    produces a continuously present block cursor. For the module to be loaded in
  159.    memory, VIz must be installed with any /V switch (see below), and it adds an
  160.    additional 100 bytes to the resident size of VIz.
  161.  
  162.    Very short or very long alternation rates are distracting or hard to follow.
  163.    When selecting a rate for laptop displays, start with a value of n=9 (.50 s)
  164.    or so.
  165.  
  166.    Block cursor alternation can be turned off by making this resident quiescent
  167.    with the switch /V+ (until its reactivation with /Vn). All cursor operations
  168.    use direct commands to the hardware, and assume register-level compatibility
  169.    with the Motorola 6845 CRT controller. This chip is present in MDA, CGA, and
  170.    HGC cards, while a 6845-compatible CRTC is a custom LSI chip in the IBM-EGA,
  171.    part of the Memory Controller Gate Array on the MCGA, or a part of the Video
  172.    Graphics Array on the VGA.
  173.  
  174.    The normal (hardware-controlled) blinking of the cursor is not eliminated by
  175.    VIz; hence, depending on the alternation rate selected, a two-beat frequency
  176.    may be noticeable.
  177.  
  178.                 -----------------
  179.  
  180.    3.  ANSI-COMPATIBLE VIDEO FILTER MODULE
  181.  
  182.    MS-DOS and IBM PC-DOS files include ANSI.SYS, a console filter driver that
  183.    mediates a subset of American National Standards Institute (ANSI) standard
  184.    escape sequences for video functions.  In addition, this filter mediates a
  185.    supplementary subset for keyboard functions (such as key reprogramming).
  186.  
  187.    VIz has a second, independently installable resident module that implements
  188.    standard ANSI escape sequences to control the console video functions. This
  189.    ANSI-compatible filter uses less than some 800 additional bytes of RAM when
  190.    installed.  Once installed, this ANSI filter module can be turned off or on
  191.    independently of the other modules, or jointly uninstalled from memory.
  192.  
  193.    The filter does not provide by itself much acceleration of DOS video input/
  194.    output as far as ANSI instructions are concerned.  Its advantages are small
  195.    resident size, the capability of being turned on or off, and its harmonious
  196.    working with the acceleration module of VIz.
  197.  
  198.  
  199.    COEXISTENCE WITH OTHER ANSI FILTERS
  200.  
  201.    The installation of the ANSI filter can be made contingent on not detecting
  202.    the presence of ANSI.SYS or another ANSI-like utility intercepting the FAST
  203.    CONSOLE interrupt (29h) of DOS, such as ANSI.COM (Copyright 1989 Ziff-Davis
  204.    Corp.), or the potential presence of such utilities may be ignored (and the
  205.    filter forced to install).
  206.  
  207.    The presence of an installed ANSI-like utility can be ascertained using the
  208.    Status/Usage/Help panel displayed when the command 'VIZ ?┘' is issued; the
  209.    Status line at the bottom of the screen displays one of the following:
  210.  
  211.     ANSI.SYS    Indicates that interrupt 29h (see below) points to a
  212.             resident code containing a device driver header with
  213.             the attributes of a character device servicing calls
  214.             to INT 29h and the device name 'CON.' This is likely
  215.             to be ANSI.SYS or an ANSI-compatible device driver.
  216.  
  217.     ANSI.COM    Indicates that interrupt 29h (see below) points to a
  218.             resident code containing the string 'CON    ' at the
  219.             place where the device driver name should be, but it
  220.             does not contain other elements of the device driver
  221.             header.  This is an ANSI-compatible resident utility
  222.             of the type of ANSI.COM.
  223.  
  224.     ANSI: No    Indicates absence of the above conditions.
  225.  
  226.  
  227.    ANSI IMPLEMENTATIONS
  228.  
  229.    The ANSI-compatible filter supports the following subset of ANSI 3.64-1979,
  230.    standard escape sequences, to control console video functions (see your DOS
  231.    documentation of the ANSI.SYS commands):
  232.  
  233.     Selection of the foreground and background colors on a color display or
  234.     the text attributes on a monochrome display system. The sequence syntax
  235.     is <Esc>[#;...;#m, where # is 30-37 to select a foreground color, 40-47
  236.     47 to select a background color, and 0-1, 4-5 or 7-8 to select the text
  237.     attributes.
  238.  
  239.     Selection of the video mode (similar to using the MODE command of DOS).
  240.     The sequence syntax is <Esc>[=#h or <Esc>[=#l, where # is 0-6 or higher
  241.     (depending on the adapter card in use).
  242.  
  243.     Selection of word wrapping, i.e. whether lines longer than the width of
  244.     the screen are truncated. The sequence syntax is <Esc>[?7h or <Esc>[?7l
  245.     to turn word wrapping ON or OFF, respectively.
  246.  
  247.     Cursor positioning for the following sequences:
  248.  
  249.         <Esc>[r#;c#H  Move to specified row (r#) and column (c#)
  250.         <Esc>[r#;c#f  Same a previous sequence
  251.         <Esc>[r#A     Move cursor up by specified number of rows
  252.         <Esc>[r#B     Move cursor down by specified number of rows
  253.         <Esc>[c#C     Move forward the specified number of columns
  254.         <Esc>[c#D     Move backward the specified number of columns
  255.  
  256.         <Esc>[s       Store current position of the cursor
  257.         <Esc>[u       Restore to the position stored by <Esc>[s
  258.  
  259.         <Esc>[K       Erase from the cursor to end of the line
  260.         <Esc>[2J      Clear all rows and home cursor (this sequence
  261.                   preserves current color attribute)
  262.  
  263.    Not supported by the filter are the cursor-position-reporting ANSI sequence
  264.    (<Esc>[r#;c#R), and the supplementary set of escape sequences used by ANSI.
  265.    SYS to permit the reprogramming of the keyboard (i.e. <Esc>[#;'string';3p),
  266.    a set which is not part of the 1979 ANSI video standard.
  267.  
  268.    Thus, you should consider using the ANSI filter of VIz, instead of ANSI.SYS
  269.    or other ANSI-like utility, when interested in using video escape sequences
  270.    only, without keyboard remapping.
  271.  
  272.                 -----------------
  273.  
  274.    4.  USAGE
  275.                VIZ [/Switches] [;Comments]
  276.  
  277.    The switches can be entered from:
  278.  
  279.     (1) the DOS command line
  280.     (2) a batch file
  281.     (3) a DOS environment string with the format VIZ=/SWITCH1.../SWITCHn
  282.  
  283.  
  284.    The switches are not case sensitive, and can be separated by any character
  285.    between space (ASCII 32) and backslash (ASCII 47).  The effects of some of
  286.    the switches, e.g., /N, are order sensitive.  Switches /A, /B, /C, /D, /I,
  287.    /M, /P, /R and /S are "sticky" as the video changes they produce remain in
  288.    effect even if VIz is quiescent or uninstalled.
  289.  
  290.    --------------------------------------------------------------------------
  291.    (*) Switches marked with asterisks are available only in registered copies
  292.    --------------------------------------------------------------------------
  293.  
  294.  
  295.    SWITCH /?
  296.  
  297.      This switch displays the Status/Usage/Help panels, which are described in
  298.      more detail in the section below.  If a VGA or EGA is the active adapter,
  299.      the program saves the contents of the palette registers prior to changing
  300.      the video attributes for its various displays.  See section STATUS/USAGE/
  301.      HELP PANELS below.
  302.  
  303.      EGA users:  The default MS-DOS palette attributes are restored if the EGA
  304.      BIOS fails to store the original data.
  305.  
  306.  
  307.  * SWITCH /A[±]
  308.  
  309.      Installs a resident filter to implement (the video subset of) ANSI escape
  310.      sequences; the installation may be made contingent upon failure to detect
  311.      the presence of the DOS driver ANSI.SYS or some ANSI-like residents (/A),
  312.      or to ignore their potential presence (/A+).
  313.  
  314.      Although the filter can take advantage of VIz acceleration, its operation
  315.      does not require the enabling of the resident accelerator module, and its
  316.      activity can be controlled independently with the following switches:
  317.  
  318.     * /A    If VIz is not yet installed, adds the ANSI filter module
  319.         to the resident code to be installed, provided that ANSI
  320.         or another logical device named 'CON     ' mediating int
  321.         29h (see #3 above) is not installed, and inactivates the
  322.         remapping of the EGA/VGA palette via /C+, /Cn:n, or /Cm.
  323.  
  324.  
  325.     * /A+   If VIz is not yet installed, adds the ANSI filter module
  326.         to the resident code to be installed, even when ANSI.SYS
  327.         or a similar CON utility has already been installed, and
  328.         inactivates the remapping of the EGA/VGA palette via /C+
  329.         /Cn:n, or /Cm.
  330.  
  331.         If VIz is already installed, and the resident filter was
  332.         made inactive with /A-, /A+ reactivates the ANSI filter.
  333.  
  334.  
  335.     * /A-   Inactivates the filter, if installed and active. It also
  336.         reactivates a previously active remapping of the EGA/VGA
  337.         palette.
  338.  
  339.      Defaults: /A = /A+; null switch = no resident on installation.
  340.  
  341.      NOTE:  Switch /A or /A+ automatically turns switch /Z off (/Z-) to insure
  342.             that all the DOS video output is directed to the console driver so
  343.      that ANSI escape sequences via StdOut can also be implemented by the ANSI
  344.      filter. (In those cases where the ANSI escape sequences are directly sent
  345.      by the application to INT 29h, a faster DOS output is achieved by turning
  346.      switch /Z on (/Z+) after selecting switch /A[+].)
  347.  
  348.      The ANSI module does not become resident unless switch /A[+] is specified
  349.      at the time VIz is being installed and cannot be added after installation
  350.      of the resident(s).
  351.  
  352.  
  353.  * SWITCH /Bn
  354.  
  355.      Selects the color for the screen border in text modes, and the background
  356.      and border color in graphic modes.  This color is specified by <n>, a one
  357.      or two digit number representing the Red-Green-Blue mixture for the color
  358.      using an octal (base 8) format ranging from 0 to 77 (see Switch C below).
  359.  
  360.      Switch /C+ also sets the screen border; the default border for the EGA is
  361.      black, and the screen background attribute for other color adapters.
  362.  
  363.  
  364.  * SWITCH /Cn:m±?
  365.  
  366.      Allows for color changes in the EGA/VGA color palette, which consists of
  367.      16 registers, and is used to map video memory data into colors.  Both in
  368.      (the EGA-compatible modes of) the VGA and the EGA, the value in each one
  369.      of these registers determines the amount of Red, Green, and Blue mixture
  370.      in the displayed color.
  371.  
  372.      This amount can be represented by the data bits <RGBrgb>, where <000rgb>
  373.      shows the color at 33%, <RGB000> at 66%, and <RGBrgb> at 100% intensity.
  374.      These bits, and their resultant color, are shown below using both binary
  375.      (base 1) and octal (base 8) number formats:
  376.  
  377.       ┌─────────┬───────┬─────────────┐
  378.       │ binary  │ octal │    Color    │    Since the binary format takes up a
  379.       ├─────────┼───────┼─────────────┤    lot of space it is more convenient
  380.      +│ 000 000 │  00   │ 100% black  │    to use the 2-digit octal format to
  381.       │ 000 001 │  01   │  33% blue   │    represent an RGB value. The binary
  382.       │ 000 010 │  02   │  33% green  │    equivalence of octal numbers is:
  383.       │ 000 011 │  03   │  33% cyan   │
  384.       │ 000 100 │  04   │  33% red    │
  385.       │ 000 101 │  05   │  33% magenta│         0o = 000000b
  386.       │ 000 110 │  06   │  33% yellow │         1o = 000001b
  387.       │ 000 111 │  07   │  33% white  │         2o = 000010b
  388.       ├─────────┼───────┼─────────────┤         3o = 000011b
  389.      +│ 001 000 │  10   │  66% blue   │         4o = 000100b
  390.      +│ 010 000 │  20   │  66% green  │         5o = 000101b
  391.      +│ 011 000 │  30   │  66% cyan   │         6o = 000110b
  392.      +│ 100 000 │  40   │  66% red    │         7o = 000111b
  393.      +│ 101 000 │  50   │  66% magenta│        10o = 001000b
  394.      +│ 110 000 │  60   │  66% yellow │        11o = 001001b
  395.      +│ 111 000 │  70   │  66% white  │        12o = 001010b
  396.       ├─────────┼───────┼─────────────┤        13o = 001011b
  397.      +│ 001 001 │  11   │ 100% blue   │        14o = 001100b
  398.      +│ 010 010 │  22   │ 100% green  │        15o = 001101b
  399.      +│ 011 011 │  33   │ 100% cyan   │        16o = 001110b
  400.      +│ 100 100 │  44   │ 100% red    │        17o = 001111b
  401.      +│ 101 101 │  55   │ 100% magenta│        20o = 010000b
  402.      +│ 110 110 │  66   │ 100% yellow │           etc
  403.      +│ 111 111 │  77   │ 100% white  │
  404.       └─────────┴───────┴─────────────┘
  405.         (+) IBM default color palette
  406.  
  407.      Of course, other colors can also be generated when using a different RGB
  408.      mixture value.  For instance, a desaturated (i.e., whitish) RGB sequence
  409.      is obtained in the octal range 71o through 76o.
  410.  
  411.      This palette control is also enabled (versions 2.42+) for the monochrome
  412.      mode of VGA and MCGA video adapters to remap color codes into gray-scale
  413.      values.  The following services are available:
  414.  
  415.     * /C:n  The RGB values of the palette registers is set by a 16-
  416.         number sequence in which these two-digit, octal numbers
  417.         are separated by colons (:) as in the following example
  418.  
  419.            /C03:00:20:30:40:50:01:77:70:11:22:33:44:55:66:76
  420.  
  421.         which shows the default palette colors used by VIz when
  422.         switch /C? is used.  If less than 16 numbers are given,
  423.         their RGB values are loaded into the respective palette
  424.         registers starting from register 0.  When a non-numeric
  425.         value is provided, the palette is not changed.
  426.  
  427.  
  428.     * /Cm±  The VGA and MCGA adapters emulates a 16-color text mode
  429.         for a monochrome display, and the palette consists of 4
  430.         groups of four shades of gray. In MONOCHROME modes, /Cm
  431.         loads a palette in which the gray-scale value increases
  432.         uniformly with increasing attribute values; the palette
  433.         corresponds to the following command
  434.  
  435.            /C00:50:01:31:61:12:42:03:43:04:44:05:55:26:07:77
  436.  
  437.         Switch /Cm can also be used with CGA monochrome systems
  438.         (e.g., laptops) to translate color attributes into gray
  439.         scale values.
  440.  
  441.         In COLOR modes, switch /Cm± enables [+] or disables [-]
  442.         the gray-scale summing of the RGB mixture. The summing,
  443.         carried out by the BIOS, sets the gray-scale equivalent
  444.         of a given color to 30%, 50%, and 11% of the Red, Green
  445.         and Blue value in the video digital-to-analog registers
  446.         (these percentages are close to the relative brightness
  447.         of the displayed 'pure' red, green, and blue).
  448.  
  449.  
  450.       /C?   This service provides a display of the palette registers
  451.         and the corresponding RGB mixture in octal format. It is
  452.         possible to alter the RGB mixture of any register simply
  453.         by pressing <R>, <G>, or <B> and then <> or <>.  These
  454.         arrows cycle through 0%, 33%, 66%, and 100% intensity of
  455.         the respective RGB component.  The actual RGB mixture of
  456.         the selection is also shown on a graph.  Press the right
  457.         or left arrow to cycle through the registers, and <HOME>
  458.         to go to register 0 or <END> to go to register 15.
  459.  
  460.         Press <ENTER> to save the current palette, <ESC> to quit
  461.         the service without any palette changes, <DEL> to reject
  462.         any change and to restart the service, and the indicated
  463.         function keys to load several available palettes.
  464.  
  465.  
  466.     * /C-   Use to inactivate the implementation of EGA/VGA palette
  467.         changes via VIz.  The video attributes remain unchanged
  468.         until the a video operation reloads the palette, e.g. a
  469.         video mode change.  Switch /A+ also turns off remapping
  470.         of the palette.
  471.  
  472.  
  473.     * /C+   Use to reactivate the implementation of EGA/VGA palette
  474.         changes via VIz; it reloads the last color palette that
  475.         was selected via VIz.  Switch /A- reactivates remapping
  476.         if remapping was in effect prior to an /A+ request.
  477.  
  478.      Defaults: /C = /C+.
  479.  
  480.      The selected EGA/VGA color palette changes are asserted (i.e. the palette
  481.      is loaded with the selected RGB values) each time a video mode change, or
  482.      a video font change, is requested and VIz is enabled (i.e., no /Q switch,
  483.      no graphics mode, and no video page other than 0).
  484.  
  485.      To preserve the small size of Viz, there is no hotkey pop-up service.  If
  486.      during the execution of an application the color palette changes, the RGB
  487.      values selected via VIz cannot be asserted except by shelling to DOS (and
  488.      executing VIz with the switch /C+ to reload the palette) or by triggering
  489.      a video mode/font change.
  490.  
  491.  
  492.  * SWITCH /D±n
  493.  
  494.      Adjusts brightness of screen (VGA card only); the brightness change step
  495.      is specified by the sign and value of <±n>, which is a decimal number of
  496.      1 or 2 digits, with or without a sign, in the range from -63 to +63. Use
  497.      of high negative or positive numbers can result in an unreadable screen.
  498.      Selection of /D0 results in the restoration of the screen to its default
  499.      settings (as dictated by the manual controls of the monitor).
  500.  
  501.      Defaults: /D = /D+2; /D1 = /D+1; /D- = /D-2.
  502.  
  503.  
  504.  * SWITCH /E
  505.  
  506.      Creates or updates the variable VIZ=/SWITCH1.../SWITCHn in the DOS global
  507.      environment, where /SWITCH1.../SWITCHn are the switches to be implemented
  508.      when VIz is executed from the DOS command line without any arguments.  If
  509.      the 'VIZ' variable already exists, switch /E updates the contents of this
  510.      variable.  Although switch /E is incorporated into the variable contents,
  511.      its presence is ignored when VIz uses this variable as input.
  512.  
  513.      Switch /E modifies the DOS global environment irrespective of whether the
  514.      resident shell is the initial copy of COMMAND.COM (global environment) or
  515.      a secondary copy (local environment).  See the INSTALLATION section below
  516.      for more details.  No defaults.
  517.  
  518.  
  519.  * SWITCH /FHtg
  520.  
  521.      If VIz detects a HERCULES card adapter (HGC or HGC+), switch /FHt changes
  522.      the card to text mode (80x25) whereas switch /FHg changes the card to its
  523.      default (page 0) 720x348 graphics mode.
  524.  
  525.  * SWITCH /Fn±
  526.  
  527.      If VIz detects an EGA or VGA adapter, switch /Fn permits the selection of
  528.      the number of screen rows to be displayed.  The following video fonts are
  529.      supported: 12 or 14 (EGA or VGA), 25 (EGA and VGA), 28 (VGA), 35 (EGA and
  530.      VGA) and 43 or 50 (EGA or VGA) screen rows.  Except for the 12/14 and 35-
  531.      row fonts, implementation of the selected font is maintained until switch
  532.      /F-, which disables font implementation, or another font is selected; the
  533.      font implementation can be reenabled with /F+.
  534.  
  535.      If a number <n> is not specified, switch /F toggles between 25-row and 43
  536.      (EGA) or 50-row (VGA) screens.  (If an EGA/VGA adapter is found, VIz also
  537.      selects the alternate BIOS print-screen service to avoid the default BIOS
  538.      print-screen routine that works with 25 rows only.)  For a 25-row screen,
  539.      an 8x14 font is used in an EGA and a 9x16 font in a VGA.  Fonts with more
  540.      than 25 rows can be loaded only if the video page is between 0 and 3.
  541.  
  542.      No defaults.
  543.  
  544.  
  545.  * SWITCH /Gn
  546.  
  547.      The frequency in Hz (cycles per second) of 55-ms bell tones is specified
  548.      by <n>, a decimal number of up to 4 digits, in the range from 25 to 5000
  549.      Hz.  Values below 25 become 25 Hz and above 5000 become 5000 Hz; if more
  550.      than 4 digits are given only the four least-significant digits are used,
  551.      e.g., 50,000 Hz is read as 0000, triggering the use of 25 Hz.
  552.  
  553.      The bell tones always last 55 ms (one tick of the 8253/8254 timer chip).
  554.      Since the tones are forced to begin at the start of a 55-ms tick period,
  555.      stacked bell rings will result in a distinctive, staccato-like burst due
  556.      to the intervening silent 55-ms tick periods.
  557.  
  558.      Most computer speakers seem to work properly within the range from about
  559.      100 Hz to about 3,000 Hz.  Frequencies for the octave starting at middle
  560.      are C=523 Hz, D=587 Hz, E=659 Hz, F=699 Hz, A=880 Hz, and B=988 Hz.  The
  561.      frequencies for higher [lower] octaves increase [decrease] approximately
  562.      by a factor of 2 per octave change from the above values.
  563.  
  564.      Defaults: /G = /G440.
  565.  
  566.  
  567.  * SWITCH /H
  568.  
  569.      Loads the resident in the Upper Memory Area (UMA), between addresses 640
  570.      kb and 1,024 kb of memory; this is the region below the 1-Mb boundary of
  571.      the memory accessible by 086 CPUs, but above the 640-kb hardware barrier
  572.      of MS-DOS.  The switch requires an available upper memory block (UMB) of
  573.      about .9 to 1.7 kb (depending on the number of modules to be installed),
  574.      which is allocated by the program itself either via a direct XMS request
  575.      or, when DOS controls the UMB allocation (i.e. DOS 5.0 linked to the UMA
  576.      through the command DOS=UMB in CONFIG.SYS), via DOS calls. Allocation of
  577.      UMBs requires the presence of an XMS manager (XMM) that supports the UMB
  578.      services 10h-11h of the XMS 2.0, and (if the XMM lacks the capability of
  579.      remapping memory) the presence of an UMB provider.
  580.  
  581.    * SWITCH /Hn
  582.  
  583.      A lower upper-memory limit for the UMB loading can also be requested via
  584.      switch /Hn, in which <n> is a four-digit hexadecimal number between A000
  585.      (640 kb) and FFFF (1,024 kb), in order to avoid or select specific areas
  586.      of upper memory.
  587.  
  588.    * SWITCH /Hn@
  589.  
  590.      A lower-memory resident marker can also be installed along with the UMB
  591.      resident via switch /H@ or /Hn@; the marker occupies 144 bytes of lower
  592.      conventional memory, can be identified in some memory mapping utilities
  593.      by the name
  594.                 VIz @ UMB
  595.  
  596.      and is released from memory when the UMB resident is uninstalled.  This
  597.      marker may be used (1) to remind that the resident is already installed
  598.      in upper memory, (2) to help locate the UMB installation address in the
  599.      case of some mapping utilities, and (3) to help avoid removal conflicts
  600.      when lower and upper-memory residents are interspersed.
  601.  
  602.      Defaults:  Low-memory installation if any error is found during the UMB
  603.      loading; high-memory installation below lower-address limit if UMBs are
  604.      not available above such limit.
  605.  
  606.  
  607.  * SWITCH /I±
  608.  
  609.      Selects how background color attributes with a hexadecimal value in the
  610.      range from 8h to Fh (bit 7=1) are displayed in text modes.
  611.  
  612.     * /I-   High-bit attributes produce a blinking character on a
  613.         background of normal (medium) intensity.
  614.  
  615.     * /I+   High-bit attributes result in a steady character on an
  616.         intense background.
  617.  
  618.      Defaults: Null switch = /I- on installation.
  619.  
  620.  
  621.  * SWITCH /K±
  622.  
  623.      Disables [+] or enables [-] access of the CPU to video RAM in VGA/MCGA.
  624.      It can be used to kill BIOS-mediated displays that cannot be redirected
  625.      to the NUL device.
  626.  
  627.     * /K-   Enable CPU access to video RAM (normal display).
  628.  
  629.     * /K+   Disable CPU access to video RAM (blanked display).
  630.  
  631.      Defaults: /K = /K+; null switch = /K- on installation.
  632.  
  633.  
  634.  * SWITCH /Mn
  635.  
  636.      Selects the video mode specified by <Hn>, in which <n> is a hexadecimal
  637.      number between 0 and FF, or <Dn>, where <n> is a decimal number between
  638.      0 and 255. NOTE: There is no checking that the selected mode is a valid
  639.      one for the adapter.  No defaults.
  640.  
  641.  
  642.  * SWITCH /N±
  643.  
  644.      Determines whether or not noncritical program messages are displayed.
  645.  
  646.     * /N-   Noncritical messages are displayed via the redirectable
  647.         StdOut device of DOS.
  648.  
  649.     * /N+   Noncritical messages are not displayed, in which case a
  650.         a brief bell tone is sounded when a error has occurred.
  651.  
  652.      Defaults: /N = /N+; null switch = /N- on installation.
  653.  
  654.      Since VIz beeps when a command error is detected, /N- should need to be
  655.      used only after such a beep to display the error message again.  Please
  656.      note that the installing, uninstalling, and critical-error VIz messages
  657.      cannot be redirected and are always displayed.  The final status of the
  658.      operation can be monitored in batch files with the ERRORLEVEL commands.
  659.  
  660.  
  661.  * SWITCH /Pn
  662.  
  663.      Selects the video page specified by a number <n> in the range of 0 to 7
  664.      for 25-row display EGA/VGA, 0 to 3 for 43/50-row display EGA/VGA, and 0
  665.      to 3 for CGA.  No defaults.
  666.  
  667.  
  668.    SWITCH /Q
  669.  
  670.      Forces the video accelerator into a quiescent mode; if loaded, the ANSI
  671.      filter and the Cursor blink resident are NOT inactivated.  The overhead
  672.      video time for having VIz quiescent is an additional 2% or less of that
  673.      without VIz.  (Even when it is quiescent or during graphic video modes,
  674.      the accelerator still monitors the video interrupt to check for page or
  675.      mode change requests.)  A quiescent mode lasts until the next execution
  676.      of the program, unless switch /Q or /? has been selected.  No defaults.
  677.  
  678.  
  679.  * SWITCH /R±
  680.  
  681.      Selects the mode of processing text output that is used by DOS.  In the
  682.      normal ('cooked') mode, the kernel builds a device request for a single
  683.      character output, makes a Ctrl-C check, and then passes this request to
  684.      the StdOut console device; if no error is found, the buffer pointer and
  685.      character count are updated.  This process is repeated until either the
  686.      end-of-file character (ASCII 26, Ctrl-Z) is found or all characters are
  687.      processed.  Tabs (ASCII 9) are expanded to 8 spaces.
  688.  
  689.      In the binary ('raw') mode, instead of filtering the stream for control
  690.      characters, DOS passes a single request header to the device.  Control-
  691.      C, Control-P, and Control-S keyboard entries are not checked during I/O
  692.      operations.  Depending on the DOS version, DOS-mediated video output in
  693.      binary mode is faster by factor of about 1.40 or so.
  694.  
  695.     * /R-   Changes DOS processing to the normal or 'cooked' mode.
  696.  
  697.     * /R+   Changes DOS processing to a binary or 'raw' mode.
  698.  
  699.  
  700.      Defaults: Null switch = /R- on installation.
  701.  
  702.      When executed, some utilities set the DOS processing mode to 'raw,' and
  703.      then change it to normal when they finish, irrespective of the original
  704.      mode.  Other utilities set the mode to 'raw' and leave it on.  Repeated
  705.      use of switch /R+ may be necessary to maintain the binary DOS mode.
  706.  
  707.      NOTE: If the DOS binary mode is selected, the 'BREAK=ON' command should
  708.            also be issued to facilitate the detection of 'Control-C' entries
  709.            during disk and other DOS operations.
  710.  
  711.  
  712.  * SWITCH /Sn±
  713.  
  714.      Enables [Sn+] or disables [Sn-] special services triggered by some keys
  715.      that can have untoward effects under some circumstances, especially for
  716.      LAN servers.
  717.  
  718.     * /S1±  Enables [+] or disables [-] the printing of the screen
  719.         triggered by the <PrtSc> key.  /S1- is useful when the
  720.         number-pad keys are used often, and the possibility of
  721.         triggering unwanted prints is commensurably high. More
  722.         importantly, if the machine is not connected to an on-
  723.         line printer, <PrtSc> will freeze the system.
  724.  
  725.     * /S2±  Enables [+] or disables [-] the dynamic halt, which is
  726.         triggered by the <Pause> key (PS/2s and COMPAQs) or by
  727.         the <Ctrl><NumLock> combination (in PCs).  The halt is
  728.         maintained until another key is pressed.  This service
  729.         is available only if the Cursor module is also loaded.
  730.  
  731.      Defaults: /S = /S1+; /S = /S1+; /S2 = /S2+; null switch = /Sn+ on
  732.                installation.
  733.  
  734.  
  735.      If /S1± (or /S± or simply /S) is requested at the time of installation,
  736.      VIz also selects the alternate BIOS print-screen service if the adapter
  737.      is an EGA or VGA, in order to handle screen lengths longer than 25 rows
  738.      (this alternate service is needed if other screen fonts are to be used,
  739.      since the BIOS default service only prints 25 lines.
  740.  
  741.      Some EGAs do not work properly when this alternate print-screen service
  742.      is enabled.  If the selection of switch /S1± during installation yields
  743.      a print-screen malfunction, install VIz without selecting /S1±, /S±, or
  744.      /S±, and only then select switch /S1 in a subsequent execution.
  745.  
  746.  
  747.    SWITCH /U
  748.  
  749.      Uninstalls the resident from memory.  The request is not honored if any
  750.      of the interrupt vectors intercepted by the program do not point to the
  751.      resident, indicating subsequent installation of other resident(s) using
  752.      the same interrupt(s) or the revectoring of such interrupts by a prior,
  753.      ill-behaved resident.
  754.  
  755.      In general, the program should be uninstalled only when it was the last
  756.      resident to be loaded; in practice, however, it can also be uninstalled
  757.      if subsequently loaded residents do not hook the same interrupts as the
  758.      program (even though this increases memory fragmentation, the resulting
  759.      "hole" is innocuous, and may be used by DOS for other purposes, such as
  760.      local environment blocks).  No defaults.
  761.  
  762.  
  763.    SWITCH /V±n
  764.  
  765.      Selects the loading of the resident cursor module. This module does not
  766.      become resident unless /V+ or /Vn is specified at the time VIz is being
  767.      loaded; this module cannot be added to the resident after installation.
  768.  
  769.       /Vn   Enforces a cursor whose shape alternates between a full
  770.         block and a thin line, in which <n> is a decimal number
  771.         (of 1 or 2 digits) specifying the alternation rate from
  772.         0.055 s [/V1] to 5.5 s [/V99].
  773.  
  774.       /V0   Forces the display of a continuous, full block cursor.
  775.  
  776.       /V-   Disables the display of the cursor.  Due to a potential
  777.         BIOS conflict, switch /V- is ignored at the time of VIz
  778.         loading; to make the cursor invisible, first use /V+ or
  779.         /Vn and then /V-.
  780.  
  781.       /V+   Reverses the cursor changes produced by /Vn and /V-.
  782.  
  783.      Defaults: /V = /V+; null switch = no resident on installation.
  784.  
  785.  
  786.  * SWITCH /X±
  787.  
  788.      If the DOS video output to the Standard Output device (StdOut) is being
  789.      mediated by VIz (see switch /Z±), switch /X controls whether the StdOut
  790.      can or cannot be redirected to a file or another device (such as NUL or
  791.      PRN) by the commands '>' or '>>' from the DOS command line.
  792.  
  793.     * /X+   The INT 21/40h/1 DOS video output can be redirected to
  794.         a file or another device.  (This is the normal default
  795.                condition.)
  796.  
  797.     * /X-   The INT 21/40h/1 DOS video output is always displayed,
  798.         i.e. it cannot be redirected.  This provides a further
  799.         acceleration of DOS video output but at the price of a
  800.         less-than-transparent operation.
  801.  
  802.      Defaults: /X = /X+; null switch = /X+ on installation.
  803.  
  804.      NOTE   If switch X is not enabled, the acceleration of DOS video output
  805.             via switch /Z+ (see below) conflicts with the redirection of DOS
  806.      output to another device or to a file; if such a redirection is needed,
  807.      either enable switch X (/X+) or disable switch Z (/Z-).
  808.  
  809.  
  810.    SWITCH /Z±
  811.  
  812.      Directs the video output through INT 21h, function 40h, device handle 1
  813.      ('write to StdOut device') to the DOS console driver or the accelerator
  814.      module of VIz.  Mediation of the INT 21h/40h/1-output to VIz produces a
  815.      considerable acceleration of DOS text output in MS-DOS versions 2 to 5.
  816.  
  817.       /Z-   INT 21/40h/1 video output is allowed to be processed by
  818.         the installed CON driver.
  819.  
  820.       /Z+   INT 21/40h/1 video output is redirected to the teletype
  821.         subservice of VIz.
  822.  
  823.      Defaults: /Z = /Z+; null switch = /Z+ on installation.
  824.  
  825.                     ---------
  826.  
  827.  
  828.    The COMMENTS may be added in the DOS command line after the specification
  829.    of the switches.  These comments, which may be useful in clarifying batch
  830.    files, must be preceded by a semicolon (;), and are ignored by VIz.
  831.  
  832.    Do not use the DOS redirection and pipe characters in the comments as DOS
  833.    will attempt to implement the implied redirection or pipe request.
  834.  
  835.                 -----------------
  836.  
  837.    5.  STATUS/USAGE/HELP PANELS
  838.  
  839.    Executing the program with switch /? selected allows access to the Status/
  840.    Usage and Help panels. (If a Mouse pointing device driver, compatible with
  841.    the Microsoft Mouse driver version 6.0 or higher is loaded and active, all
  842.    of the services provided by these panels can also be activated by pointing
  843.    the mouse to specific regions of the screen and clicking either button.)
  844.  
  845.    The STATUS/USAGE panel, which is shown first, describes status information
  846.    for the resident and some video services. The bottom line shows the status
  847.    of the StdOut stream redirection, ANSI filter, DOS text processing and the
  848.    current value of the video page and video mode.  A succinct explanation of
  849.    the status of the highlighted service can be obtained by pressing the left
  850.    or right keypad arrow keys or by clicking the mouse upon the screen button
  851.    labelled <Status>; these explanations can be erased by pressing key <F10>.
  852.    The video mode number shown in the Status panel is followed by an asterisk
  853.    if a mode higher than n+128 is detected (AT and PS/2 machines only); thus,
  854.    mode 131 is displayed as 3*.
  855.  
  856.    The USAGE subpanel shows a menu for the command switches: To cycle between
  857.    the main and the auxiliary menu, press key <F2> or <M>, or click the mouse
  858.    upon the screen button labelled <Menu>.  If the resident is installed, the
  859.    status of some 'on/off' command switches is displayed by '+' or '-' before
  860.    a given menu entry.
  861.  
  862.    Press the key <F3> or click the mouse on the screen button labelled <Time>
  863.    to run brief video benchmarks for BIOS and DOS-mediated text scrolling and
  864.    for direct screen writes. Exit the benchmarks panel by pressing key <Esc>.
  865.  
  866.    The HELP panel provides a summary description of the program and commands,
  867.    and is displayed if key <F1> or <H> is pressed from the Status/Usage panel
  868.    (or if the mouse is clicked upon the screen button labelled <Help>). Press
  869.    the keypad cursor keys (Home/End, PgUp/PgDn, arrows) to scroll the display
  870.    down or up.  Press key <F1> to skip the brief program summary and position
  871.    the text on the Usage section directly.  Press key <Esc> or <F2> to return
  872.    to the Status/Usage panel.
  873.  
  874.    Press key <X> or click the mouse upon the screen button labelled <eXit> to
  875.    return to the DOS-prompt command line from any panel.
  876.  
  877.  
  878.    NOTE  When the program is waiting for keyboard (or mouse) input during the
  879.          display of the above panels, it calls repeatedly the IDLE interrupts
  880.    of DOS: INT 28h and (if MS-DOS 5.0 is being used) INT 2Fh, function 1608h;
  881.    INT 28h allows a potential background activation of (some) other residents
  882.    while INT 2Fh/1608h allows DOS to suspend the idle program temporarily and
  883.    transfer control to another program.
  884.  
  885.                 -----------------
  886.  
  887.    6.  INSTALLATION
  888.  
  889.    It is recommended that VIz be installed before other residents also using
  890.    the BIOS interrupt 10h (video input/output).  Due to the intrinsic nature
  891.    of the implementation, VIz does not chain some the interrupt-10h calls to
  892.    residents located down the intercepted interrupt chain. In order for such
  893.    residents to have access to these data, they need to be loaded after VIz.
  894.    Thus, it may be convenient to install VIz early in the AUTOEXEC.BAT file.
  895.  
  896.    If you intend to make use of the resident ANSI filter in a more permanent
  897.    manner, VIz may also be installed just as described above; if you want to
  898.    remove the ANSI component after a given ANSI-oriented task, however, then
  899.    VIz should be the last resident to be installed prior to such a task.
  900.  
  901.    The driver ANSI.SYS needs not to be loaded or, if loaded, removed, to use
  902.    the ANSI resident of VIz.  However, if any ANSI-like utility were already
  903.    installed and active, and VIz were switched to its 'fast DOS' mode (/Z+),
  904.    such an utility might be unable to process escape sequences, unless these
  905.    sequences were sent directly to the CON device via calls to interrupt-29h
  906.    instead of interrupt 21h.
  907.  
  908.  
  909.    6.1  INSTALLATION IN UPPER MEMORY
  910.  
  911.    This section describes in more detail aspects of the active (i.e., self-
  912.    loading) or passive (e.g. via DOS LOADHIGH) installation of the resident
  913.    in the upper memory region.
  914.  
  915.  
  916.    DIRECT UPPER-MEMORY AREA LOADING
  917.  
  918.    The utility can self-install the resident in the upper memory area (UMA),
  919.    that is, RAM addresses between 640 kb and 1,024 kb, via switch /H (or its
  920.    subfunctions /Hn, /H@, and /Hn@).  Program releases prior to version 4.02
  921.    lack this feature.
  922.  
  923.    The allocation of UMA blocks (UMBs) is arbitrated by an XMS manager (XMM)
  924.    version 2.0 or higher; the XMM must be installed prior to the UMB-loading
  925.    of the resident.  Allocation also requires the remapping of UMA addresses
  926.    by a UMB provider, when such a task is not implemented by the XMM itself.
  927.    The XMM HIMEM.SYS and the UMB-provider EMM386.EXE are distributed with MS
  928.    DOS 5.0; the allocation of UMBs is controlled by DOS when these 2 drivers
  929.    are installed, and the command 'DOS=UMB' is added to the CONFIG.SYS file.
  930.    Of course, other 386-specific memory managers, such as 386MAX or QEMM386,
  931.    provide both UMB remapping and XMS support.  All XMMs require DOS version
  932.    3.0 or higher.
  933.  
  934.    Switch /Hn, where A000 ≤ n ≤ FFFF (hexadecimal), allows the specification
  935.    of a minimum upper-memory limit for the UMB to avoid UMA regions having a
  936.    very slow access time (or to preserve regions with a fast access time for
  937.    other utilities that require faster times, such as a disk cache or screen
  938.    accelerator), or to avoid fragmentation of the UMA when UMB allocation is
  939.    not controlled by DOS 5, but by the XMM itself.  Such a fragmentation may
  940.    occur when the XMM allocates blocks on a first-fit basis, i.e., the first
  941.    available UMB having the lowest UMA address is allocated, irrespective of
  942.    whether or not a (smaller) block matching the requested size is available
  943.    at a higher UMA address.  Unless the size of the available UMBs increases
  944.    with increasing memory address, first-fit allocation of a small UMB leads
  945.    to the breaking of large UMA blocks into smaller ones, thus hampering the
  946.    UMB installation of larger residents.
  947.  
  948.    When DOS controls the UMB allocation, the program enforces the allocation
  949.    of the resident block on a best-fit basis when <n> is not specified, that
  950.    is, all available blocks are searched (by DOS), and the one matching most
  951.    closely the size requested is allocated.
  952.  
  953.    When DOS controls UMB allocation and <n> is specified, UMBs are allocated
  954.    on a first-fit basis.  While this may contribute to UMA fragmentation, it
  955.    allows for the checking of a minimum memory limit in those cases in which
  956.    the selection or avoidance of a specific UMA region is more important.
  957.  
  958.    Hence, compared to the upper-memory installation provided by the LOADHIGH
  959.    command of DOS 5.0, or similar services provided by some memory managers,
  960.    program self-loading into a UMB has several advantages, including: (1) it
  961.    does not require an initial free block of upper memory of the size of the
  962.    entire program (as opposed to the size of its resident only), (2) it does
  963.    allow user control on the selection of the upper-memory block, and (3) it
  964.    can help reduce UMA fragmentation.
  965.  
  966.    NOTE: The address and size of available UMBs can be obtained with MEM.EXE
  967.    (when DOS controls UMB allocation) or via the memory manager itself (when
  968.    this allocation is controlled by 386-specific memory managers.  In either
  969.    case, such data can also be obtained with UMAX.EXE, a UMA mapping utility
  970.    that is distributed by the author.
  971.  
  972.  
  973.    HIGH-LOADING VIA MEMORY MANAGERS OR DOS 5
  974.  
  975.    Of course, the resident can also be installed in the UMA via a 386-memory
  976.    manager or via (UMB-linked) MS-DOS 5 provided that there is enough memory
  977.    for the actual size of the entire program, and any additional memory that
  978.    may be needed by the loading utility.
  979.  
  980.    To minimize disk storage, the program is distributed as a compressed file
  981.    that expands upon its execution. The difference between the actual loaded
  982.    size and the nominal directory size may create conflicts with high-memory
  983.    loading programs that fail to measure the actual size: When the available
  984.    high memory is not sufficient to permit the file expansion, but is larger
  985.    than the nominal directory size, such programs will load the (compressed)
  986.    utility. The subsequent expansion will then overwrite adjacent memory and
  987.    likely crash the memory manager or DOS.  The executable file expands by a
  988.    factor of less than 2.
  989.  
  990.    An additional 4,600 bytes of free memory are required to restore contents
  991.    of the screen after switch /? or /C?.  Also, an additional 2,600 bytes of
  992.    free memory are required to implement switch /F14 or /F35.
  993.  
  994.  
  995.    6.2  UPPER-MEMORY UPDATING
  996.  
  997.    When the program has been installed in upper memory, it does not require
  998.    a high-memory loading utility to update its resident and all updates can
  999.    be made via program executions from the DOS-command line.  This obviates
  1000.    the restriction (of some memory systems) of having to maintain a pool of
  1001.    of free upper memory simply to load the entire program to update a small
  1002.    resident.  Program releases prior to version 3.40 lack this feature.
  1003.  
  1004.  
  1005.    6.3  UPPER-MEMORY DEALLOCATION
  1006.  
  1007.    When resident deallocation is requested (switch /U) from the DOS command
  1008.    line (as opposed to via upper-memory loading utilities), the resident is
  1009.    removed from memory even when it was loaded in the UMA; the confirmation
  1010.    request of versions 3.00 to 3.16 is no longer required.
  1011.  
  1012.    When switch /U is requested via a high-memory utility be aware that some
  1013.    of these utilities warn that a "resident installation has failed."  This
  1014.    warning is harmless and may be ignored.
  1015.  
  1016.  
  1017.    6.4  MEMORY MAPPING UTILITIES
  1018.  
  1019.    Although the program releases its own copy of the environment at the time
  1020.    of installation (to reduce resident size), the resident can be identified
  1021.    in lower-memory usage maps by the name
  1022.  
  1023.                 VIzxxx
  1024.  
  1025.    that appears in the command-line listing of most memory mapping utilities
  1026.    irrespective of the actual contents of the command line when this program
  1027.    is installed in lower conventional memory; in this name, 'xxx' represents
  1028.    the version number (e.g., 421).
  1029.  
  1030.    However, when UMB loading is mediated by the XMS directly (e.g., extended
  1031.    memory manager and DOS versions 2 to 4, or DOS 5 not configured under the
  1032.    command 'DOS=UMB'), and the resident is installed in a UMB via switch /H,
  1033.    most memory mapping utilities do not list the allocated UMB, lump it with
  1034.    other allocated blocks, or fail to show the name of the resident.  If the
  1035.    identification of the UMB resident is required, use switch /H@ or /Hn@ to
  1036.    load in lower RAM a small resident marker that shows up in memory maps.
  1037.  
  1038.    When the allocation of UMBs is controlled by DOS (e.g. DOS 5.0 configured
  1039.    under the command DOS=UMB, and the drivers HIMEM.SYS and EMM386.EXE), the
  1040.    UMB resident can be identified with some mapping utilities (e.g. MEM.EXE)
  1041.    although it is often listed as "Data" instead of "Program."  Other memory
  1042.    mapping utilities identify the UMB resident only when an associated lower
  1043.    memory marker is also installed.
  1044.  
  1045.                 -----------------
  1046.  
  1047.    7.  TECHNICAL INFORMATION
  1048.  
  1049.    7.1  INTERRUPTS
  1050.  
  1051.    INTERRUPT 8h (System Timer)
  1052.  
  1053.    Channel 0 of the 8253/8254 timer chip produces a hardware interrupt (IRQ0),
  1054.    interrupt 8h, about 18.2 times a second that is used by the system time-of-
  1055.    day clock. When the cursor module is installed, switch /Vn (n=0 or 1 to 99)
  1056.    forces the display of the block cursor, either in continuous or alternating
  1057.    manner. Cursor shape is implemented via commands using either 16-bit (word)
  1058.    or 8-bit (byte) output, depending on the VIz version that was selected.
  1059.  
  1060.  
  1061.    INTERRUPT 10h (Video BIOS)
  1062.  
  1063.    The accelerator module of VIz intercepts the ROM BIOS video interrupt, 10h.
  1064.    When the system is in page 0 and a text mode, video acceleration occurs for
  1065.    subfunctions 0h through Eh, except for subfunctions 4h, 7h, Bh, and Ch.
  1066.  
  1067.  
  1068.    INTERRUPT 21h (DOS Service Dispatcher)
  1069.  
  1070.    Starting with version 2.0, DOS allows the redirection of the Standard Input
  1071.    (StdIn) and Standard Output (StdOut) console device, permitting programs to
  1072.    send input to or to receive output from other programs.  Unless redirected,
  1073.    the StdIn comes from the keyboard and the StdOut goes to the screen.  These
  1074.    and some other devices can be addressed by predefined DOS 'file handles' as
  1075.    if they were disk files.  A common DOS-mediated technique to send output to
  1076.    the screen is to write to the handle 1 (StdOut) via interrupt 21h, function
  1077.    40h; in fact, this is the preferred method of DOS-mediated video output for
  1078.    DOS version 2.0 or higher.
  1079.  
  1080.    The accelerator module of VIz also intercepts interrupt 21h. Switch /Z+ re-
  1081.    directs to VIz the INT-21h/40h/1 video stream to the StdOut, resulting in a
  1082.    significant acceleration of DOS-mediated video output. This acceleration is
  1083.    not increased by setting the DOS mode to binary (see switch /R). Switch /Z-
  1084.    restores the INT-21h/40h/1 stream to the current StdOut device.
  1085.  
  1086.    If switch /X+ has been selected (the default condition), the implementation
  1087.    of the INT-21h/40h/1 video stream by VIz is fully transparent.  Switch /X-,
  1088.    however, avoids a DOS-mediated redirection of the StdOut (i.e. the commands
  1089.    '>' and '>>' at the DOS command line are no longer able to redirect the DOS
  1090.    video output, such as '> NUL' to avoid some messages). Under switch /X- VIz
  1091.    provides an even faster acceleration of DOS video output, since it does not
  1092.    have to check whether the output is being redirected to the printer or to a
  1093.    file.
  1094.  
  1095.    Switch /Z selection is not disregarded when ANSI.SYS, ANSI.COM, or the ANSI
  1096.    filter of VIz is active.  The redirection of StdOut to VIz by /Z+, however,
  1097.    will conflict with ANSI commands sent to the CON device via standard-output
  1098.    calls to INT 21h, function 40h/1.  In contrast, ANSI commands using INT 29h
  1099.    are not affected by switch /Z+ (see above).
  1100.  
  1101.  
  1102.    INTERRUPT 29h (Fast CONsole)
  1103.  
  1104.    The ANSI-compatible module of VIz intercepts interrupt 29h, an undocumented
  1105.    feature present in all recent versions of DOS. INT 29h is normally provided
  1106.    by the built-in console device driver of DOS, and consists of a call to the
  1107.    BIOS interrupt 10h.  DOS uses INT 29h instead of the normal request-passing
  1108.    mechanism to accelerate output to the current 'CON' device. The ANSI module
  1109.    filters this output.
  1110.  
  1111.    If a request to inactivate the installed ANSI filter is encountered (switch
  1112.    /A-), VIz checks whether the INT 29h can be restored to its original memory
  1113.    address.  If the revectoring is not possible (i.e., if another resident has
  1114.    also intercepted INT 29h), this filter remains partially active in order to
  1115.    handle an ANSI escape sequence generated by COMMAND.COM to clear the screen
  1116.    when a CLS command is detected (see below); other ANSI escape sequences are
  1117.    ignored by the filter and passed to the screen.  Hence, when revectoring is
  1118.    possible, switch /A- has the same effect as installing VIz without a switch
  1119.    /A, except that the memory occupied by the ANSI filter is not released; the
  1120.    filter is reactivated by a subsequent call to execute VIz with switch /A+.
  1121.  
  1122.  
  1123.  
  1124.    7.2  CLS COMMAND AND INT 29h
  1125.  
  1126.    The internal console device driver installed during booting handles the CLS
  1127.    as well as INT-29h service. The CLS procedure of COMMAND.COM first tests to
  1128.    see if (1) the standard-output handle is associated with a character device
  1129.    driver (bit 7=1), and (2) the driver services INT 29h (bit 4=1).  If one or
  1130.    both tests fail, or if both tests are successful but the vector for INT 29h
  1131.    does not point to the memory segment of the DOS kernel, COMMAND.COM outputs
  1132.    the ANSI escape sequence <Esc>[2J to INT 29h; otherwise, it makes a call to
  1133.    INT 10h, subfunction 6 of the BIOS to clear the screen.
  1134.  
  1135.    If INT 29h cannot be revectored upon /A-, the partial driver activity slows
  1136.    down slightly the DOS video output whenever the ASCII character 27 (Esc) is
  1137.    found in the character stream.  The partial activity is needed, however, as
  1138.    DOS issues an ANSI escape sequence to clear the screen whenever INT 29h has
  1139.    been revectored.  Thus, if VIz were not to retain its ANSI driver partially
  1140.    active when revectoring of INT 29h is not possible, the DOS escape sequence
  1141.    would be displayed (without clearing the screen) whenever a CLS command was
  1142.    issued.
  1143.  
  1144.  
  1145.  
  1146.    7.3  ENVIRONMENT VARIABLE 'VIZ'
  1147.  
  1148.    When the program is executed without arguments from the DOS command line
  1149.    (or a batch file), it searches the DOS environment for a variable having
  1150.    the format:
  1151.             VIZ=/SWITCH1/SWITCH2..../SWITCHn
  1152.  
  1153.    Up to 128 characters are allowed after the equal sign. This string can be
  1154.    incorporated to the environment block via the 'SET' command of DOS or via
  1155.    switch /E of this program (see below).  Program releases prior to version
  1156.    3.63 lack this feature.
  1157.  
  1158.    While the SET command modifies the current DOS environment block, whether
  1159.    it is the global or a local one, switch /E only modifies the global block
  1160.    (even when the program is executed via a secondary COMMAND.COM, as in the
  1161.    case of shelling out to DOS from an application).   Notice that the local
  1162.    environment block is only a copy of the global block and lacks sufficient
  1163.    room to increase significantly the length of a variable, and that changes
  1164.    made to a local environment are not inherited by the global one.
  1165.  
  1166.    When searching for the environment variable, the program uses the current
  1167.    DOS environment block, whether it is the global or a local one.
  1168.  
  1169.    A recommended use of the environment string is to specify a default /Cn:n
  1170.    setting (e.g. /C03:00:20:30:40:50:01:77:70:11:22:33:44:55:66:76) that can
  1171.    be restored simply by executing VIz without any arguments after the color
  1172.    palette has been changed.
  1173.  
  1174.  
  1175.    7.4  ERRORLEVELS
  1176.  
  1177.    Upon exit its to DOS, the program passes execution status values that can
  1178.    be tested via ERRORLEVEL commands in a batch file.  The following are the
  1179.    values for version 4.20 or higher:
  1180.  
  1181.           Value   Condition
  1182.           -----   --------------------------------------
  1183.         255   Failure of cyclical redundancy check
  1184.         255   CPU type cannot execute version code
  1185.         255   Invalid DOS version
  1186.  
  1187.         254   Invalid ANSI (switch /A) request
  1188.         253   Unknown/incompatible video adapter
  1189.         252   Not enough additional RAM (/C? /? /F14 /F35)
  1190.         251   Hooked interrupts revectored
  1191.         250   Invalid cursor (switch /Vn) request
  1192.  
  1193.         128   XMM not installed or UMB load/unload error
  1194.          96   DOS environment error
  1195.          64   Incomplete color palette data list
  1196.          32   Invalid color palette datum
  1197.          16   Invalid video font for adapter and/or page
  1198.           8   Invalid video mode request
  1199.           4   Invalid video page for adapter and/or font
  1200.           2   Invalid video adapter for the request
  1201.           1   Unknown or invalid switch request
  1202.           0   Successful execution
  1203.  
  1204.  
  1205.    Since some error conditions in the range from 1 through 128 do not cancel
  1206.    program execution (nonfatal) and the error values are additive, the final
  1207.    ERRORLEVEL value may represent more than a single error condition.
  1208.  
  1209.    Program releases prior to version 3.10 lack this feature.
  1210.  
  1211.                 -----------------
  1212.  
  1213.    8.  LICENSE INFORMATION
  1214.  
  1215.    This documentation, programs, and other files distributed in this software
  1216.    package (the "Software")  are the copyrighted property of FM de Monasterio
  1217.    (the "Author"), who provides the Software and licenses its use. All rights
  1218.    are reserved.
  1219.  
  1220.    The file VIZ.REG contains a form needed to register this Software.
  1221.  
  1222.    SINGLE USER LICENSE.  Upon registration, you are granted a nontransferable
  1223.    license to use this Software in a single computer at a time.  The Software
  1224.    may also be transferred to another computer, provided that the Software is
  1225.    used only in one (1) computer at any time; under the license, the Software
  1226.    may NOT be installed on a network server.
  1227.  
  1228.    SITE/15-PCs LICENSE.  Upon registration, you are granted a nontransferable
  1229.    license to use this Software in a single site, or a set of sites, provided
  1230.    this Software is not used in more than fifteen (15) computers at any time,
  1231.    and that such computers are located exclusively within the site.  Licenses
  1232.    for more machines are available at discounted prices.
  1233.  
  1234.    SOFTWARE BUNDLING LICENSE.  Please write to the Author.
  1235.  
  1236.    REFUNDS POLICY.  If a problem notified within ninety (90) days of shipping
  1237.    of the registered copy cannot be solved, the registration fee (but not the
  1238.    shipping costs) will be refunded upon receiving a written request with the
  1239.    original diskette(s) enclosed.
  1240.  
  1241.    UPGRADE POLICY.  Program upgrades are limited to licensed users.  Upgrades
  1242.    within the same major version (e.g. release 4.00 through 4.99) are free of
  1243.    charge when a self-addressed, stamped, 5.25" diskette mailer with a 360-kb
  1244.    kb diskette is included with the request.  Other upgrades are charged half
  1245.    the (single-user/site) registration fee.  See enclosed file VIZ.UPG.
  1246.  
  1247.    TECHNICAL SUPPORT.  A phone number for technical support is made available
  1248.    to site licenses for 100 machines or more; other licensed users must write
  1249.    to the Author who will contact them.
  1250.  
  1251.  
  1252.  
  1253.    U.S. GOVERNMENT INFORMATION
  1254.  
  1255.    The use, duplication, or disclosure by the U.S. Government of the Software
  1256.    is subject to the restricted rights applicable to commercial software that
  1257.    are specified in the subdivision (b.3.ii) of the 'Rights in Technical Data
  1258.    and Computer Software' clause, document DFARS 52.227-7013. The contractor/
  1259.    manufacturer is FM de Monasterio, P.O. Box 219, Cabin John, MD 20818-0219.
  1260.  
  1261.                 ----------------
  1262.  
  1263.    DISTRIBUTION
  1264.  
  1265.    You may distribute this Software via magnetic and/or electronic means, but
  1266.    you are specifically prohibited from:
  1267.  
  1268.     - Charging fees or asking donations in exchange of or payment
  1269.       for copies of this Software.
  1270.  
  1271.     - Distributing this Software with commercial products without
  1272.       the written, express permission in advance from the author.
  1273.  
  1274.     - Distributing this Software via a for-profit organization or
  1275.       group, either alone or with other software.
  1276.  
  1277.     - Modifying any contents of this Software, including, but not
  1278.       limited to, the copyright notice and this license.
  1279.  
  1280.  
  1281.    The unauthorized copying, decompiling or disassembling of this Software is
  1282.    prohibited.  Any other use of this Software is also prohibited without the
  1283.    express, written permission in advance from the author.
  1284.  
  1285.    Latest program releases may be found at the Information Exchange BBS, 202-
  1286.    433-6639 (2400+ baud) as a compressed archive file.
  1287.  
  1288.                 ----------------
  1289.  
  1290.    WARRANTY DISCLAIMER
  1291.  
  1292.    The Author cannot and does not warrant that any functions contained in the
  1293.    Software will meet your requirements, or that its operations will be error
  1294.    free.  The entire risk as to the Software performance or quality, or both,
  1295.    is solely with the user and not the Author.  You assume responsibility for
  1296.    the selection of the program to achieve your intended results, and for the
  1297.    installation, use, and results obtained from the Software.
  1298.  
  1299.    The Author makes no warranty, either implied or expressed, including with-
  1300.    out limitation any warranty with respect to this Software documented here,
  1301.    its quality, performance, or fitness for a particular purpose. In no event
  1302.    shall the Author be liable to you for damages, whether direct or indirect,
  1303.    incidental, special, or consequential arising out the use of or any defect
  1304.    in the Software, even if the Author has been advised of the possibility of
  1305.    such damages, or for any claim by any other party.
  1306.  
  1307.    All other warranties of any kind, either express or implied, including but
  1308.    not limited to the implied warranties of merchantability and fitness for a
  1309.    particular purpose, are expressly excluded.
  1310.  
  1311.  
  1312.    LIMITATION OF REMEDIES
  1313.  
  1314.    The information contained in the documentation for the Software is subject
  1315.    to change without notice.
  1316.  
  1317.    The Author's entire liability, and your exclusive remedy shall be: (1) the
  1318.    replacement of an original Software diskette not meeting the above Limited
  1319.    Warranty and which is returned to the Author along with proof of purchase,
  1320.    or (2), if the Author is unable to deliver a replacement diskette which is
  1321.    free of defects, you may terminate the License Agreement by returning this
  1322.    Software and the corresponding license fee will be returned.
  1323.  
  1324.    By using the Software, you acknowledge (1) to have read and understood all
  1325.    parts of this document and (2) to have agreed with and accepted all of its
  1326.    provisions without any reservation.
  1327.  
  1328.                 ----------------
  1329.  
  1330.    Refer all inquiries to:
  1331.                 FM de Monasterio
  1332.                 P.O. Box 219
  1333.                 Cabin John, MD 20818-0219
  1334.                 USA
  1335.  
  1336.     ┌─────────────────────────────────────────────────────────────┐
  1337.     │ Trademarked names are the property of the respective owners │
  1338.     └─────────────────────────────────────────────────────────────┘
  1339.  [END]
  1340.